//
//  GDMineCell.m
//  爱新奇－味道
//
//  Created by 热带雨林 on 17/2/20.
//  Copyright © 2017年 热带雨林. All rights reserved.
//

#import "GDMineCell.h"
#import "Masonry.h"
#import "CZAdditions.h"

@implementation GDMineCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]){
        [self setupUI];
    }
    return self;
}
- (void)setupUI{
    
    
    UIImageView *imageV = [[UIImageView alloc]init];
    imageV.image = [UIImage imageNamed:@"tabbar_icon_media_normal"];
    [imageV sizeToFit];
    [self.contentView addSubview:imageV];
    
    UILabel *lable = [UILabel cz_labelWithText:@"爱新奇－ 味道" fontSize:14 color:[UIColor blackColor]];
    
    [self.contentView addSubview:lable];
    
    [imageV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.width.mas_equalTo (30);
        make.top.left.equalTo(self.contentView).offset(10);
    }];
    [lable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.baseline.equalTo(imageV.mas_baseline);
        make.left.equalTo(imageV.mas_right).offset(20);
    }];
    
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
